package demo1;

/**
 * @Author 12629
 * @Description：
 */
class Base {
    public int a = 1;
    public int b = 2;
}

class Derived extends Base {
    public int a = 100;
    public int c = 3;
    public void test() {
        System.out.println(super.a);
        System.out.println(this.a);
        System.out.println(this.b);
        System.out.println(super.b);
        System.out.println(this.c);
    }
}

public class Test3 {
    public static void main(String[] args) {
        Derived derived = new Derived();
        derived.test();
    }
}